var switchIndex = 0;
var maxIndex = parseInt($("#hid_recommand_area_num").val());
$(function() {
			$("i[id^='i_area_']").click(function() {
						var index = $(this).attr("name");
						$("i[id^='i_area_'].trigger").removeClass("trigger");
						$(this).addClass("trigger");
						$("ul[id^='ul_area_']:visible").hide();
						$("#ul_area_" + index).show();
						switchIndex = index;
					});

			setInterval(autoSwitch, 5000);
		});

function autoSwitch() {
	switchIndex++;
	if (switchIndex > maxIndex)
		switchIndex = 0;
	$("#i_area_" + switchIndex).trigger("click");
}